H-Index | Leet Code 274 | Theory Explained + Python Code